From 382d6c1bcb683291ef7073ea83a95a524cf68b6e Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 11 Feb 2018 15:13:06 +0000 Subject: [PATCH] Ignore deprecations for gdk_flush() When terminating the main loop, we're really trying to flush all GdkDisplay connections, so it's actually a legitimate internal use case. --- gtk/gtkmain.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index a9b9481c63..74ce18009d 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1322,7 +1322,10 @@ gtk_main (void) gdk_threads_leave (); g_main_loop_run (loop); gdk_threads_enter (); + + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; gdk_flush (); + G_GNUC_END_IGNORE_DEPRECATIONS; } main_loops = g_slist_remove (main_loops, loop); -- 2.30.2